package model

import "time"

type Book struct {
	ID     uint
	Title  string
	Author string
}

type Member struct {
	ID   uint
	Name string
}

type Borrow struct {
	ID         uint
	BookID     uint
	MemberID   uint
	BorrowDate time.Time

	Book   Book   `gorm:"foreignKey:BookID"`
	Member Member `gorm:"foreignKey:MemberID"`
}
